/*
 * #%L
 * SwiftUICommonUtilities
 * $Id:$
 * $HeadURL:$
 * %%
 * Copyright (C) 2011 - 2012 Linkwithweb
 * %%
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the 
 * License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public 
 * License along with this program.  If not, see
 * <http://www.gnu.org/licenses/gpl-3.0.html>.
 * #L%
 */
/**
 * 
 */
package com.linkwithweb.products.swiftui.ui.model;

/**
 * @author ashwin
 * 
 */
public class RicoColumnSpec {
	private String fieldName = "genericTable_0";
	private int panelIdx = 0;
	private boolean readOnly = false;
	private String colName = "OrderID";
	private String hdg = "Order ID";
	private String entryType = "B";
	private String colData = "";
	private int width = 50;
	private boolean nullable = false;
	private boolean writeable = false;
	private boolean key = true;
	private Integer length = null;
	private String selectCtl = null;
	private boolean insertOnly = false;
	private String filterUI = "t";
	// THis defines column type (Date..etc)
	private String type = null;
	// Any custom columntypes to be defined like checkbox/hyperlink
	private String control = "";
	private String txtAreaRows = "";
	private String txtAreaCols = "";

	/**
	 * @return the fieldName
	 */
	public String getFieldName() {
		return fieldName;
	}

	/**
	 * @param fieldName
	 *            the fieldName to set
	 */
	public void setFieldName(String fieldName) {
		this.fieldName = fieldName;
	}

	/**
	 * @return the panelIdx
	 */
	public int getPanelIdx() {
		return panelIdx;
	}

	/**
	 * @param panelIdx
	 *            the panelIdx to set
	 */
	public void setPanelIdx(int panelIdx) {
		this.panelIdx = panelIdx;
	}

	/**
	 * @return the readOnly
	 */
	public boolean isReadOnly() {
		return readOnly;
	}

	/**
	 * @param readOnly
	 *            the readOnly to set
	 */
	public void setReadOnly(boolean readOnly) {
		this.readOnly = readOnly;
	}

	/**
	 * @return the colName
	 */
	public String getColName() {
		return colName;
	}

	/**
	 * @param colName
	 *            the colName to set
	 */
	public void setColName(String colName) {
		this.colName = colName;
	}

	/**
	 * @return the hdg
	 */
	public String getHdg() {
		return hdg;
	}

	/**
	 * @param hdg
	 *            the hdg to set
	 */
	public void setHdg(String hdg) {
		this.hdg = hdg;
	}

	/**
	 * @return the entryType
	 */
	public String getEntryType() {
		return entryType;
	}

	/**
	 * @param entryType
	 *            the entryType to set
	 */
	public void setEntryType(String entryType) {
		this.entryType = entryType;
	}

	/**
	 * @return the colData
	 */
	public String getColData() {
		return colData;
	}

	/**
	 * @param colData
	 *            the colData to set
	 */
	public void setColData(String colData) {
		this.colData = colData;
	}

	/**
	 * @return the width
	 */
	public int getWidth() {
		return width;
	}

	/**
	 * @param width
	 *            the width to set
	 */
	public void setWidth(int width) {
		this.width = width;
	}

	/**
	 * @return the isNullable
	 */
	public boolean isNullable() {
		return nullable;
	}

	/**
	 * @param isNullable
	 *            the isNullable to set
	 */
	public void setNullable(boolean isNullable) {
		this.nullable = isNullable;
	}

	/**
	 * @return the writeable
	 */
	public boolean isWriteable() {
		return writeable;
	}

	/**
	 * @param writeable
	 *            the writeable to set
	 */
	public void setWriteable(boolean writeable) {
		this.writeable = writeable;
	}

	/**
	 * @return the isKey
	 */
	public boolean isKey() {
		return key;
	}

	/**
	 * @param isKey
	 *            the isKey to set
	 */
	public void setKey(boolean isKey) {
		this.key = isKey;
	}

	/**
	 * @return the length
	 */
	public Integer getLength() {
		return length;
	}

	/**
	 * @param length
	 *            the length to set
	 */
	public void setLength(Integer length) {
		this.length = length;
	}

	/**
	 * @return the selectCtl
	 */
	public String getSelectCtl() {
		return selectCtl;
	}

	/**
	 * @param selectCtl
	 *            the selectCtl to set
	 */
	public void setSelectCtl(String selectCtl) {
		this.selectCtl = selectCtl;
	}

	/**
	 * @return the insertOnly
	 */
	public boolean isInsertOnly() {
		return insertOnly;
	}

	/**
	 * @param insertOnly
	 *            the insertOnly to set
	 */
	public void setInsertOnly(boolean insertOnly) {
		this.insertOnly = insertOnly;
	}

	/**
	 * @return the filterUI
	 */
	public String getFilterUI() {
		return filterUI;
	}

	/**
	 * @param filterUI
	 *            the filterUI to set
	 */
	public void setFilterUI(String filterUI) {
		this.filterUI = filterUI;
	}

	/**
	 * @return the type
	 */
	public String getType() {
		return type;
	}

	/**
	 * @param type
	 *            the type to set
	 */
	public void setType(String type) {
		this.type = type;
	}

	/**
	 * @return the control
	 */
	public String getControl() {
		return control;
	}

	/**
	 * @param control
	 *            the control to set
	 */
	public void setControl(String control) {
		this.control = control;
	}

	/**
	 * @return the txtAreaRows
	 */
	public String getTxtAreaRows() {
		return txtAreaRows;
	}

	/**
	 * @param txtAreaRows
	 *            the txtAreaRows to set
	 */
	public void setTxtAreaRows(String txtAreaRows) {
		this.txtAreaRows = txtAreaRows;
	}

	/**
	 * @return the txtAreaCols
	 */
	public String getTxtAreaCols() {
		return txtAreaCols;
	}

	/**
	 * @param txtAreaCols
	 *            the txtAreaCols to set
	 */
	public void setTxtAreaCols(String txtAreaCols) {
		this.txtAreaCols = txtAreaCols;
	}

}
